//
//  BHBaseViewController.h
//  movie
//
//  Created by 白浩洋 on 2018/3/13.
//  Copyright © 2018年 白浩洋. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface BHBaseViewController : UIViewController
//是否使用自动键盘管理 默认为使用
@property (nonatomic, assign) BOOL isUseKeyboardManager;

/**
 *  定制的返回按钮
 *
 *  @param target self
 *  @param action 方法(默认pop)
 */
- (void)addCustomBackBarButtonItemWithTarget:(id)target action:(SEL)action;

/**
 *  定制的返回按钮(白色按钮)
 *
 *  @param target self
 *  @param action 方法(默认pop)
 */
- (void)addCustomWhiteBackBarButtonItemWithTarget:(id)target action:(SEL)action;

/**
 *  定制标题
 *
 *  @param titleName 标题名称
 */
- (void)addCustomTitleWithTitle:(NSString *)titleName;

/**
 *  设置导航栏的标题样式
 */
- (void)setNavigationBarStyle;

/**
 *  返回方法(可重写)
 */
- (void)backUp;

- (void)setupLeftImage:(UIImage *)image action:(SEL)action;

- (void)setupRightImage:(UIImage *)image action:(SEL)action;

- (void)setupRightTitle:(NSString *)title action:(SEL)action;

- (void)setupLeftTitle:(NSString *)title action:(SEL)action;

/*
 * 调整 UIViewController 顶部布局
 **/
- (void)viewAdjustment;

/*
 * 调整 UIScrollView 类顶部高度定位
 **/
- (void)viewAdjustmentTop:(UIScrollView*)sView;

- (void)setupRightTitle:(NSString *)title action:(SEL)action;
@end
